<#include "/layout/default.ftl">
<#include "./_common.ftl">

<#macro mainContainer>
<div class="container-fluid">
    <div class="content">
        <div class="page-header">
            <div class="row-fluid">
                <div class="span9">
                    <h3>${courseTitle}
                        <small>${courseStartDate?date!"&mdash;"} / ${courseFinishDate?date!"&mdash;"}</small>
                    </h3>
                </div>
                <#if (loggedOnUser?has_content && isEnrolled == false && isPending == false)>
                <div class="span3" style="margin-top:20px;">
                    <a class="btn btn-success" href="${baseUrl}/course/enroll/?course_id=${courseId}">
                        <i class="icon-ok"></i>
                        <#if i18n.courses?has_content>
                            ${i18n.courses.enroll_button_label}
                        <#else>
                            Приєднатися до курсу
                        </#if>
                    </a>
                </div>
            </#if>
            </div>
        </div>
        <div class="row-fluid">
            <#-- Materials: -->
            <div class="span3 materials-sidebar">
                <@sideMenu/>
            </div> <#-- sidebar -->

            <#-- Content -->
            <div class="span9">
                <div class="materials-content">
                    <#if courseLogo?has_content>
                        <div class="course-logo">
                            <img src="${courseLogo}"/>
                            <#if courseShortDesc?has_content>
                                ${courseShortDesc}
                            </#if>
                        </div>
                    </#if>
                    ${courseDescription}
                </div>
            </div>

        </div>
    </div>
    <div class="push"></div>
</div>
</#macro>

<#macro head_title>
    <title>${courseTitle}</title>
</#macro>

<@render/>
